package com.example.springsecuritydemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Controller
public class IndexController {



	@GetMapping("/level1/{flag}")
	public String level1(@PathVariable("flag") String flag){
		return  "/level1/"+flag;
	}

	@GetMapping("/level2/{flag}")
	public String level2(@PathVariable("flag") String flag){
		return  "/level2/"+flag;
	}

	@GetMapping("/level3/{flag}")
	public String level3(@PathVariable("flag") String flag){
		return  "/level3/"+flag;
	}

	@GetMapping("/toLogin")
	public String toLogin(){
		return  "login";
	}

	@GetMapping(value={"/","/index"})
	public String toIndex(){
		return  "index";
	}

}
